home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / SetPriority.c < prev    next >
MacBinary  |  1995-07-03  |  3.3 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: SetPriority.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Jul 3 19:53:13 1995, modified Mon Jul 3 19:53:13 1995, creator 'CWIE', type ASCII, 2638 bytes "SetPriority.c" , at 0xace 490 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 53 65 74 50 72 69 | 6f 72 69 74 79 2e 63 00 |..SetPri|ority.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0a 4e 00 | 00 01 ea ac 1e 33 69 ac |......N.|.....3i.|
|00000060| 1e 33 69 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.3i.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 4b 45 00 00 |........|....KE..|
|00000080| 2f 2a 0d 53 65 74 50 72 | 69 6f 72 69 74 79 2e 63 |/*.SetPr|iority.c|
|00000090| 0d 0d 63 68 61 72 20 70 | 72 69 6f 72 69 74 79 3d |..char p|riority=|
|000000a0| 37 3b 0d 0d 53 77 61 70 | 50 72 69 6f 72 69 74 79 |7;..Swap|Priority|
|000000b0| 28 26 70 72 69 6f 72 69 | 74 79 29 3b 0d 2f 2f 20 |(&priori|ty);.// |
|000000c0| 64 6f 20 68 69 67 68 20 | 70 72 69 6f 72 69 74 79 |do high |priority|
|000000d0| 20 73 74 75 66 66 20 68 | 65 72 65 0d 53 77 61 70 | stuff h|ere.Swap|
|000000e0| 50 72 69 6f 72 69 74 79 | 28 26 70 72 69 6f 72 69 |Priority|(&priori|
|000000f0| 74 79 29 3b 0d 0d 47 65 | 74 20 61 6e 64 20 73 65 |ty);..Ge|t and se|
|00000100| 74 20 74 68 65 20 70 72 | 6f 63 65 73 73 6f 72 20 |t the pr|ocessor |
|00000110| 70 72 69 6f 72 69 74 79 | 2e 20 28 54 68 69 73 20 |priority|. (This |
|00000120| 69 73 20 6d 6f 64 65 6c | 65 64 20 61 66 74 65 72 |is model|ed after|
|00000130| 20 53 77 61 70 4d 4d 55 | 4d 6f 64 65 2e 29 20 54 | SwapMMU|Mode.) T|
|00000140| 68 65 0d 4d 61 63 69 6e | 74 6f 73 68 20 6f 70 65 |he.Macin|tosh ope|
|00000150| 72 61 74 69 6e 67 20 73 | 79 73 74 65 6d 20 6e 6f |rating s|ystem no|
|00000160| 72 6d 61 6c 6c 79 20 6c | 65 61 76 65 73 20 74 68 |rmally l|eaves th|
|00000170| 65 20 70 72 6f 63 65 73 | 73 6f 72 20 70 72 69 6f |e proces|sor prio|
|00000180| 72 69 74 79 20 61 74 20 | 7a 65 72 6f 2c 0d 61 6c |rity at |zero,.al|
|00000190| 6c 6f 77 69 6e 67 20 61 | 6c 6c 20 69 6e 74 65 72 |lowing a|ll inter|
|000001a0| 72 75 70 74 73 2e 20 59 | 6f 75 20 63 61 6e 20 74 |rupts. Y|ou can t|
|000001b0| 65 6d 70 6f 72 61 72 69 | 6c 79 20 62 6c 6f 63 6b |emporari|ly block|
|000001c0| 20 69 6e 74 65 72 72 75 | 70 74 73 20 62 79 20 72 | interru|pts by r|
|000001d0| 61 69 73 69 6e 67 20 74 | 68 65 0d 70 72 6f 63 65 |aising t|he.proce|
|000001e0| 73 73 6f 72 20 70 72 69 | 6f 72 69 74 79 2e 20 54 |ssor pri|ority. T|
|000001f0| 68 65 20 68 69 67 68 65 | 73 74 20 6c 65 76 65 6c |he highe|st level|
|00000200| 20 69 73 20 37 2c 20 62 | 6c 6f 63 6b 69 6e 67 20 | is 7, b|locking |
|00000210| 61 6c 6c 20 69 6e 74 65 | 72 72 75 70 74 73 2e 20 |all inte|rrupts. |
|00000220| 54 68 69 73 20 69 73 0d | 75 73 65 66 75 6c 20 66 |This is.|useful f|
|00000230| 6f 72 20 74 69 6d 65 20 | 63 72 69 74 69 63 61 6c |or time |critical|
|00000240| 20 74 61 73 6b 73 2c 20 | 73 75 63 68 20 61 73 20 | tasks, |such as |
|00000250| 72 75 6e 6e 69 6e 67 20 | 76 69 64 65 6f 20 61 6e |running |video an|
|00000260| 69 6d 61 74 69 6f 6e 73 | 2c 20 77 68 65 72 65 20 |imations|, where |
|00000270| 79 6f 75 72 0d 70 72 69 | 6d 61 72 79 20 63 6f 6e |your.pri|mary con|
|00000280| 63 65 72 6e 20 69 73 20 | 76 69 64 65 6f 20 74 69 |cern is |video ti|
|00000290| 6d 69 6e 67 2c 20 61 6e | 64 20 79 6f 75 27 72 65 |ming, an|d you're|
|000002a0| 20 77 69 6c 6c 69 6e 67 | 20 74 6f 20 6d 69 73 73 | willing| to miss|
|000002b0| 20 41 70 70 6c 65 54 61 | 6c 6b 20 61 6e 64 0d 6b | AppleTa|lk and.k|
|000002c0| 65 79 62 6f 61 72 64 20 | 65 76 65 6e 74 73 2e 20 |eyboard |events. |
|000002d0| 4e 6f 74 65 20 74 68 61 | 74 20 77 68 69 6c 65 20 |Note tha|t while |
|000002e0| 74 68 65 20 70 72 6f 63 | 65 73 73 6f 72 20 70 72 |the proc|essor pr|
|000002f0| 69 6f 72 69 74 79 20 69 | 73 20 68 69 67 68 20 74 |iority i|s high t|
|00000300| 68 65 20 6b 65 79 62 6f | 61 72 64 20 61 6e 64 0d |he keybo|ard and.|
|00000310| 6d 6f 75 73 65 20 77 69 | 6c 6c 20 62 65 20 64 65 |mouse wi|ll be de|
|00000320| 61 64 2c 20 73 6f 20 74 | 68 61 74 20 69 74 20 69 |ad, so t|hat it i|
|00000330| 73 20 65 73 73 65 6e 74 | 69 61 6c 20 74 68 61 74 |s essent|ial that|
|00000340| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 6c 6f | your pr|ogram lo|
|00000350| 77 65 72 20 69 74 20 62 | 61 63 6b 20 64 6f 77 6e |wer it b|ack down|
|00000360| 0d 74 6f 20 61 6c 6c 6f | 77 20 74 68 65 20 75 73 |.to allo|w the us|
|00000370| 65 72 20 74 6f 20 72 65 | 67 61 69 6e 20 63 6f 6e |er to re|gain con|
|00000380| 74 72 6f 6c 2e 0d 0d 54 | 68 65 20 69 6e 6c 69 6e |trol...T|he inlin|
|00000390| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 47 65 74 53 |e functi|ons GetS|
|000003a0| 74 61 74 75 73 52 65 67 | 69 73 74 65 72 28 29 20 |tatusReg|ister() |
|000003b0| 61 6e 64 20 53 65 74 53 | 74 61 74 75 73 52 65 67 |and SetS|tatusReg|
|000003c0| 69 73 74 65 72 28 29 20 | 6f 6e 6c 79 20 77 6f 72 |ister() |only wor|
|000003d0| 6b 0d 62 65 63 61 75 73 | 65 20 74 68 65 20 70 72 |k.becaus|e the pr|
|000003e0| 6f 63 65 73 73 6f 72 20 | 69 73 20 69 6e 20 73 75 |ocessor |is in su|
|000003f0| 70 65 72 76 69 73 6f 72 | 20 73 74 61 74 65 2e 20 |pervisor| state. |
|00000400| 41 73 20 6f 66 20 74 68 | 69 73 20 77 72 69 74 69 |As of th|is writi|
|00000410| 6e 67 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |ng the M|acintosh|
|00000420| 0d 6f 70 65 72 61 74 69 | 6e 67 20 73 79 73 74 65 |.operati|ng syste|
|00000430| 6d 20 28 75 70 20 74 6f | 20 37 2e 30 29 20 61 6c |m (up to| 7.0) al|
|00000440| 77 61 79 73 20 6c 65 61 | 76 65 73 20 74 68 65 20 |ways lea|ves the |
|00000450| 36 38 30 78 30 20 70 72 | 6f 63 65 73 73 6f 72 20 |680x0 pr|ocessor |
|00000460| 69 6e 20 73 75 70 65 72 | 76 69 73 6f 72 0d 73 74 |in super|visor.st|
|00000470| 61 74 65 2e 20 48 6f 77 | 65 76 65 72 2c 20 41 70 |ate. How|ever, Ap|
|00000480| 70 6c 65 20 68 61 73 20 | 77 61 72 6e 65 64 20 74 |ple has |warned t|
|00000490| 68 61 74 20 74 68 69 73 | 20 6d 61 79 20 63 68 61 |hat this| may cha|
|000004a0| 6e 67 65 20 69 6e 20 66 | 75 74 75 72 65 20 72 65 |nge in f|uture re|
|000004b0| 6c 65 61 73 65 73 20 6f | 66 20 74 68 65 0d 6f 70 |leases o|f the.op|
|000004c0| 65 72 61 74 69 6e 67 20 | 73 79 73 74 65 6d 2e 20 |erating |system. |
|000004d0| 49 6e 20 74 68 65 20 66 | 75 74 75 72 65 2c 20 74 |In the f|uture, t|
|000004e0| 68 65 72 65 66 6f 72 65 | 2c 20 69 74 20 6d 61 79 |herefore|, it may|
|000004f0| 20 62 65 20 6e 65 63 65 | 73 73 61 72 79 20 74 6f | be nece|ssary to|
|00000500| 20 77 72 69 74 65 20 6d | 6f 72 65 0d 65 6c 61 62 | write m|ore.elab|
|00000510| 6f 72 61 74 65 20 76 65 | 72 73 69 6f 6e 73 20 6f |orate ve|rsions o|
|00000520| 66 20 74 68 65 73 65 20 | 74 77 6f 20 72 6f 75 74 |f these |two rout|
|00000530| 69 6e 65 73 2c 20 62 65 | 67 67 69 6e 67 20 74 68 |ines, be|gging th|
|00000540| 65 20 6f 70 65 72 61 74 | 69 6e 67 20 73 79 73 74 |e operat|ing syst|
|00000550| 65 6d 27 73 0d 70 65 72 | 6d 69 73 73 69 6f 6e 20 |em's.per|mission |
|00000560| 74 6f 20 64 6f 20 74 68 | 69 73 2c 20 73 69 6e 63 |to do th|is, sinc|
|00000570| 65 20 69 74 20 63 61 6e | 6e 6f 74 20 62 65 20 64 |e it can|not be d|
|00000580| 6f 6e 65 20 77 68 69 6c | 65 20 74 68 65 20 70 72 |one whil|e the pr|
|00000590| 6f 63 65 73 73 6f 72 20 | 69 73 20 69 6e 20 75 73 |ocessor |is in us|
|000005a0| 65 72 0d 73 74 61 74 65 | 2e 0d 0d 48 49 53 54 4f |er.state|...HISTO|
|000005b0| 52 59 3a 0d 31 39 38 39 | 3f 09 64 67 70 09 77 72 |RY:.1989|?.dgp.wr|
|000005c0| 6f 74 65 20 69 74 0d 38 | 2f 31 2f 39 31 09 64 67 |ote it.8|/1/91.dg|
|000005d0| 70 09 69 6e 74 72 6f 64 | 75 63 65 64 20 74 68 65 |p.introd|uced the|
|000005e0| 20 69 6e 6c 69 6e 65 20 | 66 75 6e 63 74 69 6f 6e | inline |function|
|000005f0| 73 20 61 73 20 61 20 77 | 61 79 20 74 6f 20 69 73 |s as a w|ay to is|
|00000600| 6f 6c 61 74 65 20 74 68 | 65 20 6d 61 63 68 69 6e |olate th|e machin|
|00000610| 65 20 63 6f 64 65 0d 09 | 09 09 70 61 72 74 2c 20 |e code..|..part, |
|00000620| 61 6e 64 20 74 6f 20 6d | 61 6b 65 20 69 74 20 63 |and to m|ake it c|
|00000630| 6f 6d 70 61 74 69 62 6c | 65 20 77 69 74 68 20 4d |ompatibl|e with M|
|00000640| 50 57 20 43 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |PW C as |well as |
|00000650| 54 48 49 4e 4b 20 43 2e | 0d 38 2f 36 2f 39 31 09 |THINK C.|.8/6/91.|
|00000660| 64 67 70 09 66 69 78 65 | 64 20 64 65 66 69 6e 69 |dgp.fixe|d defini|
|00000670| 74 69 6f 6e 20 6f 66 20 | 47 65 74 53 74 61 74 75 |tion of |GetStatu|
|00000680| 73 52 65 67 69 73 74 65 | 72 28 29 20 74 6f 20 6d |sRegiste|r() to m|
|00000690| 61 6b 65 20 69 74 20 61 | 20 6c 65 67 61 6c 20 70 |ake it a| legal p|
|000006a0| 72 6f 74 6f 74 79 70 65 | 2e 0d 32 2f 31 35 2f 39 |rototype|..2/15/9|
|000006b0| 33 09 64 67 70 09 61 64 | 64 65 64 20 53 77 61 70 |3.dgp.ad|ded Swap|
|000006c0| 50 72 69 6f 72 69 74 79 | 28 29 2e 0d 37 2f 32 39 |Priority|()..7/29|
|000006d0| 2f 39 34 20 64 67 70 20 | 64 69 73 61 62 6c 65 20 |/94 dgp |disable |
|000006e0| 61 6c 6c 20 63 6f 64 65 | 20 69 66 20 63 6f 6d 70 |all code| if comp|
|000006f0| 69 6c 69 6e 67 20 66 6f | 72 20 50 6f 77 65 72 50 |iling fo|r PowerP|
|00000700| 43 0d 2a 2f 0d 23 69 6e | 63 6c 75 64 65 20 22 56 |C.*/.#in|clude "V|
|00000710| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 2e 68 22 0d 0d |ideoTool|box.h"..|
|00000720| 2f 2a 20 54 68 65 73 65 | 20 61 72 65 20 36 38 6b |/* These| are 68k|
|00000730| 20 69 6e 6c 69 6e 65 20 | 66 75 6e 63 74 69 6f 6e | inline |function|
|00000740| 73 20 73 75 70 70 6f 72 | 74 65 64 20 62 79 20 54 |s suppor|ted by T|
|00000750| 48 49 4e 4b 2c 20 4d 50 | 57 2c 20 61 6e 64 20 43 |HINK, MP|W, and C|
|00000760| 6f 64 65 57 61 72 72 69 | 6f 72 20 43 2e 20 2a 2f |odeWarri|or C. */|
|00000770| 0d 23 69 66 20 47 45 4e | 45 52 41 54 49 4e 47 36 |.#if GEN|ERATING6|
|00000780| 38 4b 0d 09 70 61 73 63 | 61 6c 20 73 68 6f 72 74 |8K..pasc|al short|
|00000790| 20 47 65 74 53 74 61 74 | 75 73 52 65 67 69 73 74 | GetStat|usRegist|
|000007a0| 65 72 28 76 6f 69 64 29 | 3d 30 78 34 30 64 37 3b |er(void)|=0x40d7;|
|000007b0| 09 09 09 2f 2a 20 4d 4f | 56 45 2e 57 20 53 52 2c |.../* MO|VE.W SR,|
|000007c0| 28 53 50 29 09 2a 2f 0d | 09 70 61 73 63 61 6c 20 |(SP).*/.|.pascal |
|000007d0| 76 6f 69 64 20 53 65 74 | 53 74 61 74 75 73 52 65 |void Set|StatusRe|
|000007e0| 67 69 73 74 65 72 28 73 | 68 6f 72 74 20 73 74 61 |gister(s|hort sta|
|000007f0| 74 75 73 29 3d 30 78 34 | 36 64 66 3b 09 09 2f 2a |tus)=0x4|6df;../*|
|00000800| 20 4d 4f 56 45 2e 57 20 | 28 53 50 29 2b 2c 53 52 | MOVE.W |(SP)+,SR|
|00000810| 09 2a 2f 0d 23 65 6e 64 | 69 66 0d 0d 76 6f 69 64 |.*/.#end|if..void|
|00000820| 20 53 65 74 50 72 69 6f | 72 69 74 79 28 69 6e 74 | SetPrio|rity(int|
|00000830| 20 69 29 0d 7b 0d 09 23 | 69 66 20 47 45 4e 45 52 | i).{..#|if GENER|
|00000840| 41 54 49 4e 47 36 38 4b | 0d 09 09 72 65 67 69 73 |ATING68K|...regis|
|00000850| 74 65 72 20 73 68 6f 72 | 74 20 73 74 61 74 75 73 |ter shor|t status|
|00000860| 3b 0d 09 0d 09 09 69 20 | 26 3d 20 37 3b 0d 09 09 |;.....i |&= 7;...|
|00000870| 69 20 3c 3c 3d 20 38 3b | 0d 09 09 73 74 61 74 75 |i <<= 8;|...statu|
|00000880| 73 3d 47 65 74 53 74 61 | 74 75 73 52 65 67 69 73 |s=GetSta|tusRegis|
|00000890| 74 65 72 28 29 3b 0d 09 | 09 73 74 61 74 75 73 20 |ter();..|.status |
|000008a0| 26 3d 20 7e 30 78 37 30 | 30 3b 09 2f 2a 20 63 6c |&= ~0x70|0;./* cl|
|000008b0| 65 61 72 20 74 68 65 20 | 70 72 69 6f 72 69 74 79 |ear the |priority|
|000008c0| 20 62 69 74 73 20 2a 2f | 0d 09 09 73 74 61 74 75 | bits */|...statu|
|000008d0| 73 20 7c 3d 20 69 3b 09 | 09 2f 2a 20 69 6e 73 65 |s |= i;.|./* inse|
|000008e0| 72 74 20 6e 65 77 20 70 | 72 69 6f 72 69 74 79 20 |rt new p|riority |
|000008f0| 62 69 74 73 20 2a 2f 0d | 09 09 53 65 74 53 74 61 |bits */.|..SetSta|
|00000900| 74 75 73 52 65 67 69 73 | 74 65 72 28 73 74 61 74 |tusRegis|ter(stat|
|00000910| 75 73 29 3b 0d 09 23 65 | 6c 73 65 0d 09 09 69 3b |us);..#e|lse...i;|
|00000920| 09 2f 2f 20 70 72 65 76 | 65 6e 74 20 22 75 6e 75 |.// prev|ent "unu|
|00000930| 73 65 64 20 61 72 67 75 | 6d 65 6e 74 22 20 77 61 |sed argu|ment" wa|
|00000940| 72 6e 69 6e 67 0d 09 23 | 65 6e 64 69 66 0d 7d 0d |rning..#|endif.}.|
|00000950| 0d 69 6e 74 20 47 65 74 | 50 72 69 6f 72 69 74 79 |.int Get|Priority|
|00000960| 28 76 6f 69 64 29 0d 7b | 0d 09 72 65 67 69 73 74 |(void).{|..regist|
|00000970| 65 72 20 73 68 6f 72 74 | 20 73 74 61 74 75 73 3d |er short| status=|
|00000980| 30 3b 0d 0d 09 23 69 66 | 20 47 45 4e 45 52 41 54 |0;...#if| GENERAT|
|00000990| 49 4e 47 36 38 4b 0d 09 | 09 73 74 61 74 75 73 3d |ING68K..|.status=|
|000009a0| 47 65 74 53 74 61 74 75 | 73 52 65 67 69 73 74 65 |GetStatu|sRegiste|
|000009b0| 72 28 29 3b 0d 09 09 73 | 74 61 74 75 73 20 3e 3e |r();...s|tatus >>|
|000009c0| 3d 20 38 3b 0d 09 09 73 | 74 61 74 75 73 20 26 3d |= 8;...s|tatus &=|
|000009d0| 20 37 3b 0d 09 23 65 6e | 64 69 66 0d 09 72 65 74 | 7;..#en|dif..ret|
|000009e0| 75 72 6e 20 73 74 61 74 | 75 73 3b 0d 7d 0d 0d 76 |urn stat|us;.}..v|
|000009f0| 6f 69 64 20 53 77 61 70 | 50 72 69 6f 72 69 74 79 |oid Swap|Priority|
|00000a00| 28 63 68 61 72 20 2a 70 | 72 69 6f 72 69 74 79 29 |(char *p|riority)|
|00000a10| 0d 7b 0d 09 23 69 66 20 | 47 45 4e 45 52 41 54 49 |.{..#if |GENERATI|
|00000a20| 4e 47 36 38 4b 0d 09 09 | 63 68 61 72 20 6f 6c 64 |NG68K...|char old|
|00000a30| 50 72 69 6f 72 69 74 79 | 3b 0d 09 09 0d 09 09 6f |Priority|;......o|
|00000a40| 6c 64 50 72 69 6f 72 69 | 74 79 3d 47 65 74 50 72 |ldPriori|ty=GetPr|
|00000a50| 69 6f 72 69 74 79 28 29 | 3b 0d 09 09 53 65 74 50 |iority()|;...SetP|
|00000a60| 72 69 6f 72 69 74 79 28 | 2a 70 72 69 6f 72 69 74 |riority(|*priorit|
|00000a70| 79 29 3b 0d 09 09 2a 70 | 72 69 6f 72 69 74 79 3d |y);...*p|riority=|
|00000a80| 6f 6c 64 50 72 69 6f 72 | 69 74 79 3b 0d 09 23 65 |oldPrior|ity;..#e|
|00000a90| 6c 73 65 0d 09 09 70 72 | 69 6f 72 69 74 79 3b 09 |lse...pr|iority;.|
|00000aa0| 2f 2f 20 70 72 65 76 65 | 6e 74 20 22 75 6e 75 73 |// preve|nt "unus|
|00000ab0| 65 64 20 61 72 67 75 6d | 65 6e 74 22 20 77 61 72 |ed argum|ent" war|
|00000ac0| 6e 69 6e 67 0d 09 23 65 | 6e 64 69 66 0d 7d 00 00 |ning..#e|ndif.}..|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 01 00 00 00 01 98 | 00 00 00 98 00 00 00 52 |........|.......R|
|00000b10| 74 6f 2e 68 3e 09 09 2f | 2a 20 6f 70 74 69 6f 6e |to.h>../|* option|
|00000b20| 61 6c 20 2a 2f 0d 23 69 | 6e 63 6c 75 64 65 20 22 |al */.#i|nclude "|
|00000b30| 0d 53 65 74 50 72 69 6f | 72 69 74 79 2e 63 02 00 |.SetPrio|rity.c..|
|00000b40| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 64 05 40 |..TEXTCW|IE...d.@|
|00000b50| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 64 05 40 |..TEXTCW|IE...d.@|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 a0 7c 4d fc 00 00 | 0a 4e 00 00 01 ea 65 72 |...|M...|.N....er|
|00000b80| 3b 0d 0d 09 61 73 6d 20 | 7b 6d 6f 76 65 20 73 72 |;...asm |{move sr|
|00000b90| 2c 73 74 61 74 75 73 52 | 65 67 69 73 74 65 72 7d |,statusR|egister}|
|00000ba0| 0d 09 69 20 26 3d 20 37 | 3b 0d 09 73 74 61 74 75 |..i &= 7|;..statu|
|00000bb0| 73 52 65 67 69 73 74 65 | 72 20 26 3d 20 7e 30 78 |sRegiste|r &= ~0x|
|00000bc0| 37 30 30 3b 09 2f 2a 20 | 63 6c 65 61 72 20 70 72 |700;./* |clear pr|
|00000bd0| 69 6f 72 69 74 79 20 62 | 69 74 73 20 2a 2f 0d 09 |iority b|its */..|
|00000be0| 73 74 61 74 75 73 52 65 | 67 69 73 74 65 72 20 7c |statusRe|gister ||
|00000bf0| 3d 20 69 2a 30 78 31 30 | 30 3b 09 2f 2a 20 69 6e |= i*0x10|0;./* in|
|00000c00| 00 00 00 40 00 03 00 00 | 08 55 00 00 08 60 0b 47 |...@....|.U...`.G|
|00000c10| 65 74 50 72 69 6f 72 69 | 74 79 00 00 07 56 00 00 |etPriori|ty...V..|
|00000c20| 07 61 0b 53 65 74 50 72 | 69 6f 72 69 74 79 00 00 |.a.SetPr|iority..|
|00000c30| 08 f1 00 00 08 fd 0d 53 | 77 61 70 50 72 69 6f 72 |.......S|wapPrior|
|00000c40| 69 74 79 00 00 00 00 48 | 00 09 4d 6f 6e 61 63 6f |ity....H|..Monaco|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 03 00 04 00 3c |........|.......<|
|00000c70| 00 03 01 9f 02 7d 00 3c | 00 03 01 9f 02 7d ad 65 |.....}.<|.....}.e|
|00000c80| 04 30 00 00 05 e4 00 00 | 05 e9 00 00 03 06 00 00 |.0......|........|
|00000c90| 00 00 00 04 00 01 00 01 | 00 00 01 00 00 00 01 98 |........|........|
|00000ca0| 00 00 00 98 00 00 00 52 | 01 bb c7 28 3e 6e 00 00 |.......R|...(>n..|
|00000cb0| 00 1c 00 52 00 01 4d 50 | 53 52 00 01 00 12 4d 57 |...R..MP|SR....MW|
|00000cc0| 42 42 00 00 00 2a 03 ef | ff ff 00 00 00 00 00 00 |BB...*..|........|
|00000cd0| 00 00 03 ed ff ff 00 00 | 00 44 00 00 00 00 03 f0 |........|.D......|
|00000ce0| ff ff 00 00 00 90 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+